home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / operation-graduates.swf / scripts / frame_40 / DoAction.as
Text File  |  2011-10-17  |  943b  |  35 lines

  1. function initSplash()
  2. {
  3.    attachMovie("splash","splash",0);
  4.    splash.startButton.gotoAndStop("inactive");
  5.    splash.theRoll = new Sound();
  6.    splash.thePress = new Sound();
  7.    splash.theRelease = new Sound();
  8.    splash.theRoll.attachSound("sound.rollover");
  9.    splash.thePress.attachSound("sound.onpress");
  10.    splash.theRelease.attachSound("sound.onrelease");
  11.    splash.startButton.onRollOver = splash.startButton.onDragOver = function()
  12.    {
  13.       this.gotoAndStop("active");
  14.       splash.theRoll.start();
  15.    };
  16.    splash.startButton.onRollOut = splash.startButton.onDragOut = function()
  17.    {
  18.       this.gotoAndStop("inactive");
  19.    };
  20.    splash.startButton.onPress = function()
  21.    {
  22.       splash.thePress.start();
  23.    };
  24.    splash.startButton.onRelease = function()
  25.    {
  26.       splash.theRelease.start();
  27.       gotoAndStop(41);
  28.       splash.removeMovieClip();
  29.    };
  30. }
  31. i++;
  32. initSplash();
  33. trace("in");
  34. stop();
  35.